package cn.snowsoft.iot.module.cps.controller.admin.equipment.vo;

import cn.snowsoft.iot.framework.common.pojo.PageParam;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@TableName(value = "cps_equipment_point", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EquipmentPointPageVO extends PageParam {
    private static final long serialVersionUID = 1L;

    private Long equipmentId;

    private Integer pointDataNumber;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime collectionTime;

    private String pointCode;
    private String pointName;
    private String unit;
    private String formula;
    private String readAndWrite;
    private Integer readInstruction;
    private Integer writeInstruction;
    private Integer isEnable;
    private Integer registerId;
    private Integer quantity;
    private String dataType;
    private String pointType;
    private String inputParameter;
    private String outputParameter;

}
